home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Periodicals / CSMP / C.S.M.P. Digest, Issue 3.012 < prev    next >
Internet Message Format  |  1994-06-09  |  68KB

  1. From: pottier@clipper.ens.fr (Francois Pottier)
  2. Subject: csmp-digest-v3-012
  3. Date: Mon, 11 Apr 94 12:52:57 MET DST
  4.  
  5. C.S.M.P. Digest             Mon, 11 Apr 94       Volume 3 : Issue 12
  6.  
  7. Today's Topics:
  8.  
  9.         Antialiasing code-algo somewhere?
  10.         Finding full path names
  11.         Global cursor change: how to?
  12.         Graphic Elements: an element that isn't there
  13.         How do I read digital samples from an audio CD?
  14.         I crashed a Power Mac!
  15.         Multiple HD Reads, can it be done?
  16.         PBDTGetAPPL on a network volume?
  17.         PEF, XCOFF Info Wanted
  18.         QuickDraw Question
  19.         Quickdraw Blend Function Inaccurate?
  20.         Read-Save Styled Text Code
  21.         Try 3: Movie Credit Scrolling - How?
  22.         making fat binaries question
  23.  
  24.  
  25.  
  26. The Comp.Sys.Mac.Programmer Digest is moderated by Francois Pottier
  27. (pottier@clipper.ens.fr).
  28.  
  29. The digest is a collection of article threads from the internet newsgroup
  30. comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
  31. regularly and want an archive of the discussions.  If you don't know what a
  32. newsgroup is, you probably don't have access to it.  Ask your systems
  33. administrator(s) for details.  If you don't have access to news, you may
  34. still be able to post messages to the group by using a mail server like
  35. anon.penet.fi (mail help@anon.penet.fi for more information).
  36.  
  37. Each issue of the digest contains one or more sets of articles (called
  38. threads), with each set corresponding to a 'discussion' of a particular
  39. subject.  The articles are not edited; all articles included in this digest
  40. are in their original posted form (as received by our news server at
  41. nef.ens.fr).  Article threads are not added to the digest until the last
  42. article added to the thread is at least two weeks old (this is to ensure that
  43. the thread is dead before adding it to the digest).  Article threads that
  44. consist of only one message are generally not included in the digest.
  45.  
  46. The digest is officially distributed by two means, by email and ftp.
  47.  
  48. If you want to receive the digest by mail, send email to listserv@ens.fr
  49. with no subject and one of the following commands as body:
  50.     help                        Sends you a summary of commands
  51.     subscribe csmp-digest Your Name    Adds you to the mailing list
  52.     signoff csmp-digest            Removes you from the list
  53. Once you have subscribed, you will automatically receive each new
  54. issue as it is created.
  55.  
  56. The official ftp info is //ftp.dartmouth.edu/pub/csmp-digest.
  57. Questions related to the ftp site should be directed to
  58. scott.silver@dartmouth.edu. Currently no previous volumes of the CSMP
  59. digest are available there.
  60.  
  61. Also, the digests are available to WAIS users as comp.sys.mac.programmer.src.
  62.  
  63.  
  64. -------------------------------------------------------
  65.  
  66. >From mcmath@csb1.nlm.nih.gov (Charles F. McMath)
  67. Subject: Antialiasing code-algo somewhere?
  68. Date: Fri, 25 Mar 94 15:44:51 GMT
  69. Organization: National Library of Medicine
  70.  
  71. (Tried to post this last night, looks like it didn't work.  That
  72. will explain any duplicates floating around...)
  73.  
  74. I have a TIFF image I'm displaying in a window; however, it needs
  75. to be antialiased.  I've seen some antialiasing code that works on
  76. text, but it's written in Think C with inline assembly.  I need to
  77. do something in MPW, and would prefer straight C code.
  78.  
  79. Anybody have any pointers as to where I can look?  If such code
  80. exists, that'd be great, but I'll take leads to books, articles, etc,
  81. on antialiasing.  Note this is dealing with generalized graphics,
  82. not text (which I read last night, 32-bit QD can antialias - see
  83. develop issue 1, I think).
  84.  
  85. Thanks to all!
  86.  
  87. chuck
  88.  
  89. +--------------------------------------------------------------------------+
  90. |  Chuck McMath *   On Line Computer Systems, Inc.  *  chuck@ocs.com       |
  91. |  Hey batter, hey batter, hey batter, swing!" - Anon.                     |
  92. |  Best Album of 1994: "Barney & Friends" Best Song: Barney's "I Love You" |
  93. +--------------------------------------------------------------------------+
  94.  
  95. +++++++++++++++++++++++++++
  96.  
  97. >From lowry@shiva.eche.ualberta.ca (Brian Lowry)
  98. Date: 25 Mar 1994 20:58:58 GMT
  99. Organization: Chem Eng - Univ of Alberta
  100.  
  101. In article <1994Mar25.154451.1487@nlm.nih.gov>, mcmath@csb1.nlm.nih.gov
  102. (Charles F. McMath) wrote:
  103.  
  104. > I have a TIFF image I'm displaying in a window; however, it needs
  105. > to be antialiased.  I've seen some antialiasing code that works on
  106. > text, but it's written in Think C with inline assembly.  I need to
  107. > do something in MPW, and would prefer straight C code.
  108.  
  109.   Draw the TIFF in an offscreen 24 bit GWorld and then Update the GWorld to
  110. the desired size - you should get an anti-aliased version of your image
  111. (inasmuch as simple averaging is anti-aliasing -- some might argue it
  112. isn't).  All included gratis, thanks to 32 bit Quickdraw...
  113.  
  114. -- 
  115.  
  116. Brian Lowry
  117.  
  118. +++++++++++++++++++++++++++
  119.  
  120. >From markhanrek@aol.com (MarkHanrek)
  121. Date: 27 Mar 1994 01:16:02 -0500
  122. Organization: America Online, Inc. (1-800-827-6364)
  123.  
  124. In article <1994Mar25.154451.1487@nlm.nih.gov>, mcmath@csb1.nlm.nih.gov
  125. (Charles F. McMath) writes:
  126.  
  127. You might look in the "Graphic Gems" source code collection, and also in "NIH
  128. Image".  Sorry, I'm unable to specify where you can find these.
  129.  
  130. Mark Hanrek
  131.  
  132.  
  133. ---------------------------
  134.  
  135. >From mike <Mike.Doyle@comp.vuw.ac.nz>
  136. Subject: Finding full path names
  137. Date: 21 Mar 1994 21:35:56 GMT
  138. Organization: Comp Sci Dept. VUW
  139.  
  140. I have been attempting to use the std file package to get 
  141. full pathnames for files.  What I want to do is use SFGetFile
  142. to select a file and then return the full pathname for that 
  143. file.
  144.  
  145. Is there any way of getting the full pathname of the default 
  146. directory?  Mac Revealed says the vRefNum is the reference number 
  147. of the default directory but as far as I can tell it is the reverence
  148. number of the volume (irrespective of the directory within that vol).
  149.  
  150. I suppose I want a way of doing the equialent of the UNIX command pwd.
  151.  
  152. Any ideas suggestions..
  153.  
  154. mike
  155.  
  156. ps I know you are not supposed to refer to files by pathnames but this
  157. is for a first course in programming and vRefNums and FileRefNums is a
  158. bit heavy at this stage.
  159. ==============================================================
  160. mike@comp.vuw.ac.nz
  161. mike.doyle@vuw.ac.nz
  162.  
  163. Mathematics and Computer Science Departments
  164. 3rd Floor Cotton Building               
  165. Victoria University
  166. P O Box 600                               Phone:     + 64 4 472 1000 x8874
  167. Wellington, New Zealand.            Fax:   + 64 4 471 2070
  168. ==============================================================
  169.  
  170. +++++++++++++++++++++++++++
  171.  
  172. >From walkerm@acf2.nyu.edu (Michael A. Walker)
  173. Date: Thu, 24 Mar 1994 18:52:15 -0500
  174. Organization: New York University
  175.  
  176. In article <2ml3vs$ccc@st-james.comp.vuw.ac.nz>, mike
  177. <Mike.Doyle@comp.vuw.ac.nz> wrote:
  178.  
  179. > I have been attempting to use the std file package to get 
  180. > full pathnames for files.  What I want to do is use SFGetFile
  181. > to select a file and then return the full pathname for that 
  182. > file.
  183.  
  184. The code to do this isn't really that hard.  SFGetFile, and its
  185. cousins, return the volume name and directory of the file selected
  186. in its dialog.  You can use this with the following:
  187.  
  188. void PathNameFromDirID(long dirID, short vRefNum, StringPtr
  189.                                                                                                        fullPathName)
  190. {
  191.     CInfoPBRec    block;
  192.     Str255        directoryName;
  193.     OSErr        err;
  194.  
  195.     fullPathName[0] = '\0';
  196.  
  197.     block.dirInfo.ioDrParID = dirID;
  198.     block.dirInfo.ioNamePtr = directoryName;
  199.     do {
  200.             block.dirInfo.ioVRefNum = vRefNum;
  201.             block.dirInfo.ioFDirIndex = -1;
  202.             block.dirInfo.ioDrDirID = block.dirInfo.ioDrParID;
  203.             err = PBGetCatInfo(&block, FALSE);
  204.             pstrcat(directoryName, (StringPtr)"\p:");
  205.             pstrinsert(fullPathName, directoryName);
  206.     } while (block.dirInfo.ioDrDirID != 2);
  207. }
  208.  
  209. where fullPathName is a pointer to a string (pascal string, if I
  210. remember correctly) you give the function to store the full
  211. path name.  The functions 'pstrcat' and 'pstrinsert' are defined
  212. as:
  213.  
  214. void pstrcat(StringPtr dst, StringPtr src)
  215. {
  216.     BlockMove(src + 1, dst + *dst + 1, *src);
  217.     *dst += *src;
  218. }
  219.  
  220. void pstrinsert(StringPtr dst, StringPtr src)
  221. {
  222.     BlockMove(dst + 1, dst + *src + 1, *dst);
  223.     BlockMove(src + 1, dst + 1, *src);
  224.     *dst += *src;
  225. }
  226.  
  227. Hope this helps.
  228. -- 
  229. Michael A. Walker
  230. New York University
  231. walkerm@acf2.nyu.edu
  232. ==============================================------------------------8-;
  233. main() {int x,y,k;char *b=" .:,;!/>)|&IH%*#@";double
  234. cr,ci,zr,zi,temp,cx,cy;
  235. for(y=30;puts(""),cy=y*0.1-1.5,y-->=0;){for(x=0;cx=x*0.04-2,zr=0,zi=0,x++<75;)
  236. {for(cr=cx,ci=cy,k=0;temp=zr*zr-zi*zi+cr,zi=2*zr*zi+ci,zr=temp,k<112;k++)
  237. if(zr*zr+zi*zi>10)break;printf("%c",b[k%16]);}}}      /*  try this on for
  238. size!!  */
  239.  
  240. +++++++++++++++++++++++++++
  241.  
  242. >From d88-jwa@mumrik.nada.kth.se (Jon W‰tte)
  243. Date: 25 Mar 1994 08:35:26 GMT
  244. Organization: The Royal Institute of Technology
  245.  
  246. In <walkerm-240394185215@walker.infocenter.nyu.edu> walkerm@acf2.nyu.edu (Michael A. Walker) writes:
  247.  
  248. >    do {
  249. >            block.dirInfo.ioVRefNum = vRefNum;
  250. >            block.dirInfo.ioFDirIndex = -1;
  251. >            block.dirInfo.ioDrDirID = block.dirInfo.ioDrParID;
  252. >            err = PBGetCatInfo(&block, FALSE);
  253. >            pstrcat(directoryName, (StringPtr)"\p:");
  254. >            pstrinsert(fullPathName, directoryName);
  255. >    } while (block.dirInfo.ioDrDirID != 2);
  256.  
  257. So if you get an error, you wil just keep looping
  258. without ever leaving the loop?
  259.  
  260. Cheers,
  261.  
  262.                     / h+
  263. -- 
  264.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  265.  
  266.     CORRECTLY in this case meaning to the language spec, not to the
  267.     naive expectations of the programmer.
  268.  
  269. +++++++++++++++++++++++++++
  270.  
  271. >From Carl R. Osterwald <carl_osterwald@nrel.gov>
  272. Date: Fri, 25 Mar 94 16:06:09 GMT
  273. Organization: National Renewable Energy Laboratory
  274.  
  275. In article <walkerm-240394185215@walker.infocenter.nyu.edu> Michael A.
  276. Walker, walkerm@acf2.nyu.edu writes:
  277. >    fullPathName[0] = '\0';
  278. >where fullPathName is a pointer to a string (pascal string, if I
  279. >remember correctly) you give the function to store the full
  280. >path name.
  281.  
  282. Using a Pascal string for the result will fail if the resultant full path
  283. name exceeds 255 characters, which is entirely possible.  This is one
  284. reason why the OS never really uses full path names, and why the
  285. StandardFile routines use FSSpecs instead.
  286.  
  287. +++++++++++++++++++++++++++
  288.  
  289. >From robert@fpksu65.bv.tu-berlin.de (Robert Uebbing)
  290. Date: 27 Mar 1994 09:56:25 GMT
  291. Organization: TU Berlin
  292.  
  293. In article <A9B85A01E0027D1A@cro.nrel.gov>, Carl R. Osterwald
  294. <carl_osterwald@nrel.gov> wrote:
  295. > In article <walkerm-240394185215@walker.infocenter.nyu.edu> Michael A.
  296. > Walker, walkerm@acf2.nyu.edu writes:
  297. > >    fullPathName[0] = '\0';
  298. > .
  299. > .
  300. > .
  301. > >where fullPathName is a pointer to a string (pascal string, if I
  302. > >remember correctly) you give the function to store the full
  303. > >path name.
  304. > Using a Pascal string for the result will fail if the resultant full path
  305. > name exceeds 255 characters, which is entirely possible.  This is one
  306. > reason why the OS never really uses full path names, and why the
  307. > StandardFile routines use FSSpecs instead.
  308.  
  309. well, the main reason why the MacOS uses FSSpecs to identify files is
  310. that the full file path name is *not* definite. you can give different
  311. volumes with the same name and therefore have the identical full path
  312. name for different files (opposed to the unix and dos file system).
  313.  
  314. robbi
  315.  
  316. ***********************************************************************
  317. * Robert Uebbing                                                      *
  318. * - Institut fuer Photogrammetrie und Kartographie an der TU Berlin - *
  319. * - Institute for Photogrammetry and Cartography TU Berlin, Germany - *
  320. ***********************************************************************
  321.  
  322. ---------------------------
  323.  
  324. >From AIKEN <INRA000@MUSICB.MCGILL.CA>
  325. Subject: Global cursor change: how to?
  326. Date: Sun, 27 Mar 1994 05:19:26 GMT
  327. Organization: McGill University
  328.  
  329.     I'm writing a background app that kicks in every once in a while,
  330. and I would like to communicate the fact that I'm working to the user.
  331. I figured a cute way of doing this would be an Auto-Doubler-like cusor
  332. switch (For the unfamiliar, AD changes the cursor to "AD" when it's
  333. working on your drive).
  334.  
  335.     However, cursor changes seem to be local to an app, i.e. the cursor
  336. only actually gets changed on a SetCursor() call if your app is in the
  337. foreground. So, of course, calling setCursor() from a background app
  338. seems to have no effect at all.
  339.  
  340.     Is there a way of accomplishing what I wish to do? Any advice
  341. appreciated.
  342.  
  343.     Cheers,
  344.  
  345.     Mark Aiken
  346.     inra@musicb.mcgill.ca
  347.  
  348.  
  349. +++++++++++++++++++++++++++
  350.  
  351. >From markhanrek@aol.com (MarkHanrek)
  352. Date: 27 Mar 1994 01:28:06 -0500
  353. Organization: America Online, Inc. (1-800-827-6364)
  354.  
  355. AutoDoubler and Public Utilities and other things which change the cursor when
  356. they are active have one thing in common -- they are all extensions.
  357.  
  358. When extensions patch a trap, such as SetCursor, they patch it before any
  359. applications are active, and affect the behavior of all that follows.
  360.  
  361. But if an application patches SetCursor, it only impacts itself when it is
  362. active.
  363.  
  364. To be able to affect the cursor "globally" no matter what, an extension of some
  365. sort will be required ( a helper extension or full blown doohickie ).
  366.  
  367. Have fun! :)
  368.  
  369. Mark Hanrek
  370.  
  371.  
  372. +++++++++++++++++++++++++++
  373.  
  374. >From Robin J. Lunge <rjl1@cornell.edu>
  375. Date: 28 Mar 1994 02:40:25 GMT
  376. Organization: Cornell University
  377.  
  378. To set the cursor from the background, you can fiddle with the low-memory
  379. globals TheCrsr and CrsrNew. The former contains the current (1-bit)
  380. cursor. The latter has to be tickled to get the system to actually show
  381. the change.
  382.  
  383. +++++++++++++++++++++++++++
  384.  
  385. >From pottier@trimaran.ens.fr (Francois Pottier)
  386. Date: 28 Mar 1994 14:10:42 GMT
  387. Organization: Ecole Normale Superieure, PARIS, France
  388.  
  389. In article <2n5g2pINN450@newsstand.cit.cornell.edu>,
  390. Robin J. Lunge  <rjl1@cornell.edu> wrote:
  391. >To set the cursor from the background, you can fiddle with the low-memory
  392. >globals TheCrsr and CrsrNew. The former contains the current (1-bit)
  393. >cursor. The latter has to be tickled to get the system to actually show
  394. >the change.
  395.  
  396. Another, cleaner way (IMHO) is to record the address of _SetCursor at
  397. INIT time, and then call it directly. Thus you're able to bypass Multifinder's
  398. patch and change the cursor even when you're in the background.
  399.  
  400. The only drawback is that you need an INIT. In my case it didn't matter
  401. because I already had one.
  402.  
  403.  
  404. -- 
  405. Francois Pottier
  406. pottier@dmi.ens.fr
  407.  
  408. +++++++++++++++++++++++++++
  409.  
  410. >From wdh@netcom.com (Bill Hofmann)
  411. Date: Mon, 28 Mar 1994 17:51:23 GMT
  412. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  413.  
  414.  
  415. >In article <2n5g2pINN450@newsstand.cit.cornell.edu>,
  416. >Robin J. Lunge  <rjl1@cornell.edu> wrote:
  417. >>To set the cursor from the background, you can fiddle with the low-memory
  418. >>globals TheCrsr and CrsrNew. The former contains the current (1-bit)
  419. >>cursor. The latter has to be tickled to get the system to actually show
  420.  
  421. >Another, cleaner way (IMHO) is to record the address of _SetCursor at
  422. >INIT time, and then call it directly. Thus you're able to bypass Multifinder's
  423. >
  424.  
  425. >The only drawback is that you need an INIT. In my case it didn't matter
  426. Eeek.  But if you get the address of SetCursor and call it directly, you
  427. also lose any *other* patches installed, that the USER has installed,
  428. like ClikChange or other abominations.  
  429.  
  430. To do it right, you should *patch* SetCursor, and normally have your patch
  431. be a no-op.  A modern Mac way to communicate easily would be to set up a:
  432.     1. SetCursor patch which looks at a variable to determine whehter
  433.        to fool with the cursor
  434.     2. a Gestalt selector which either provides the address of said
  435.        variable or a pointer to a function to call which would set
  436.        the variable and do other things
  437. Since the original poster seems to want to (probably) animate the cursor
  438. or some such thing, one useful way to do this would be to use the Gestalt
  439. proc to return the address of a function which either
  440.     a. fired off a VBL task which animates the cursor (being sure to
  441.        check CrsrBusy before calling SetCursor)
  442.     b. turns off the VBL task.
  443. Ugh. Getting complex...
  444. -- 
  445. -Bill Hofmann                    wdh@netcom.COM
  446.  Fresh Software and Instructional Design    +1 510 524 0852
  447.  
  448. ---------------------------
  449.  
  450. >From al@crucible.powertools.com (Al Evans)
  451. Subject: Graphic Elements: an element that isn't there
  452. Date: 28 Mar 94 17:54:34 GMT
  453. Organization: PowerTools, Austin, Texas
  454.  
  455.  
  456. This is an answer to a question about Graphic Elements which several
  457. people have asked me in email. If you don't have Graphic Elements,
  458. skip this article -- or better yet, go ftp it from mac.archive.umich.edu
  459. (or its mirror sites): /mac/misc/demo/graphicelementsdemo.sit.hqx.
  460. Don't be put off by the name: the file includes a Think C 6.0
  461. linkable library and example programs with source code.
  462.  
  463. The following simple Graphic Element has two basic uses:
  464.  
  465. 1) It can act as an invisible "detector", to report or take action
  466. whenever another Graphic Element enters a certain rectangle within
  467. its world;
  468.  
  469. 2) It can be slaved to another Graphic Element in order to give that
  470. element a collision rectangle different in size or position from its
  471. animationRect.
  472.  
  473. In either case, an appropriate collision procedure should be
  474. assigned to the "null" element.
  475.  
  476. - ---Source code for null Graphic Element-----
  477.  
  478. pascal void RenderNullElement(GrafElPtr element, GWorldPtr destGWorld)
  479. {
  480. #pragma unused(destGWorld, element)
  481.  
  482.     //For debugging, could do 
  483.     //FrameRect(&element->animationRect);
  484. }
  485.  
  486. GrafElPtr NewNullElement(GEWorldPtr world, OSType id, 
  487.                 short plane, Rect *animRect)
  488. {
  489.     GrafElPtr    element;
  490.     
  491.     element = NewGrafElement(world, id, plane, 
  492.             sizeof(GrafElement), NoLoader, 0, 0);
  493.     if (element) {
  494.         element->animationRect = *animRect;
  495.         element->copyMode = 0;
  496.         element->flags = geShown;
  497.         element->renderIt = RenderNullElement;
  498.         element->drawIt = nil;
  499.         element->drawData = nil;    
  500.         element->changeIntrvl = 0;
  501.     }
  502.     return element;
  503. }
  504. - ---end source code-----
  505.                     --Al Evans--
  506. -- 
  507. Al Evans            |   Graphic Elements: A new standard for 
  508.                 |   high-performance interactive Macintosh graphics.
  509. al@crucible.powertools.com  |   Available from mac.archive.umich.edu
  510.                 |   /mac/misc/demo/graphicelementsdemo.sit.hqx
  511.  
  512. ---------------------------
  513.  
  514. >From bfitz@ACM.ORG
  515. Subject: How do I read digital samples from an audio CD?
  516. Date: 23 Mar 1994 19:39:09 GMT
  517. Organization: ACM Network Services
  518.  
  519. How can I read the digital audio data from an audio CD in a usable
  520. >From bfitz@ACM.ORG
  521. Subject: How do I read digital samples from an audio CD?
  522. Date: 23 Mar 1994 19:47:35 GMT
  523. Organization: ACM Network Services
  524.  
  525. How can I read the digital audio data from an audio CD in a usable
  526. (mungeable) format? Ideally, I want to get 44Khz 16-bit stereo data which
  527. I can then process myself (using custom soudn processing routines).
  528.  
  529. I did the trick about running MoviePlayer (on a PowerMacintosh 7100/66 with
  530. a CD 300i), and using Open to convert a track from an audio CD into a
  531. QuickTime movie. Now what? I found a utility called Movie2Snd that looks
  532. like it's supposed to make an 'snd ' resource out of the soundtrack of a
  533. QuickTime movie, but it fails on these (5 to 8 MB) movies.
  534.  
  535. It "looks" like all I need to do is
  536.  
  537.    OpenMovieFile()
  538.     NewMovieFromFile()
  539.     CloseMovieFile()
  540.  
  541.     PutMovieIntoTypedHandle()
  542.  
  543. but the QuickTime documentaion is very vague about sample rates, sample
  544. size, etc. Also, given that MoviePlayer turned a 4 minute sample into a
  545. mere 5.3 MB file indicates that it is probably saving this as a mono 8-bit
  546. 22.254 Khz sample. I really want the original 44Khz 16-bit data.
  547.  
  548. So, where do I go to find out how to get the audio data samples? Any
  549. documents I can read? Anyone's brain I can pick? Favors to exchange?
  550.  
  551.    -- Brian Fitzgerald --
  552.  
  553. +++++++++++++++++++++++++++
  554.  
  555. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  556. Date: 25 Mar 94 15:41:47 +1300
  557. Organization: University of Waikato, Hamilton, New Zealand
  558.  
  559. In article <2mq6cn$jr5@hopper.acm.org>, bfitz@ACM.ORG writes:
  560. >
  561. > ... the QuickTime documentaion is very vague about sample rates, sample
  562. > size, etc.
  563.  
  564. This is all explained in "Inside Macintosh: QuickTime". Information about
  565. samples is stored in sample descriptions; the descriptions for sound samples
  566. are defined in Movies.h/p/def.
  567.  
  568. > Also, given that MoviePlayer turned a 4 minute sample into a
  569. > mere 5.3 MB file indicates that it is probably saving this as a mono 8-bit
  570. > 22.254 Khz sample. I really want the original 44Khz 16-bit data.
  571.  
  572. There is an "Options..." button in the movie open dialog. This is where you
  573. choose sample size and rate, and the portion of the track you want to capture.
  574.  
  575. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  576. Info & Tech Services Division              fax: +64-7-838-4066
  577. University of Waikato            electric mail: ldo@waikato.ac.nz
  578. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  579.  
  580. +++++++++++++++++++++++++++
  581.  
  582. >From rrwood@ionews.io.org (Roy Wood)
  583. Date: 26 Mar 1994 11:22:16 -0500
  584. Organization: Internex Online (io.org) Data: 416-363-4151  Voice: 416-363-8676
  585.  
  586. I know that QuickTime makes it possible to read audio CD files from Apple
  587. CD ROM drives (well, some Apple CD ROM drives), but I'm not sure that it
  588. works with drives manufactured by other manufacturers (NEC, etc.).  Does
  589. anyone know if it is possible to use QuickTime to read audio files using
  590. a non-Apple CD ROM drive?
  591.  
  592. And as far as using QuickTime goes, it works, but it's kind of indirect.
  593. Has anyone played around with writing a device driver that allows the audio
  594. tracks to be read directly?  I know there would be all kinds of nuisance
  595. problems with it, but it should be possible.  Anybody listening on this
  596. one?  I'd be willing to give it a try if I could get some info about the
  597. SCSI commands that allow reading of data from the audio part of the disk....
  598.  
  599. -Roy
  600.  
  601.  
  602.  
  603.  
  604. +++++++++++++++++++++++++++
  605.  
  606. >From paulcho@ionews.io.org (paulcho)
  607. Date: 26 Mar 1994 11:38:31 -0500
  608. Organization: Internex Online (io.org) Data: 416-363-4151  Voice: 416-363-8676
  609.  
  610. Article: 23239 of comp.sys.mac.programmer
  611. <bfitz@ACM.ORG> wrote:
  612. > How can I read the digital audio data from an audio CD in a usable
  613. > (mungeable) format? Ideally, I want to get 44Khz 16-bit stereo data which
  614. > I can then process myself (using custom soudn processing routines).
  615. > I did the trick about running MoviePlayer (on a PowerMacintosh 7100/66 with
  616. > a CD 300i), and using Open to convert a track from an audio CD into a
  617. > QuickTime movie. Now what? I found a utility called Movie2Snd that looks
  618. > like it's supposed to make an 'snd ' resource out of the soundtrack of a
  619. > QuickTime movie, but it fails on these (5 to 8 MB) movies.
  620. > It "looks" like all I need to do is
  621. >    OpenMovieFile()
  622. >     NewMovieFromFile()
  623. >     CloseMovieFile()
  624. >     PutMovieIntoTypedHandle()
  625.  
  626. PutMovieIntoTypedHandle work in RAM, you just ran out of memory.
  627.  
  628. > but the QuickTime documentaion is very vague about sample rates, sample
  629. > size, etc. Also, given that MoviePlayer turned a 4 minute sample into a
  630. > mere 5.3 MB file indicates that it is probably saving this as a mono 8-bit
  631. > 22.254 Khz sample. I really want the original 44Khz 16-bit data.
  632.  
  633. Look for the "options..." button in the StandPutFile after you
  634. press "Convert..." in the StandGetFile. You can chose 44Khz,
  635. 22Khz, 11 Khz, 8/16bit, mono/Stereo,selection start time and end
  636. time etc. in the Audio CD Import Options dialog.
  637.  
  638. > So, where do I go to find out how to get the audio data samples? Any
  639. > documents I can read? Anyone's brain I can pick? Favors to exchange?
  640. >    -- Brian Fitzgerald --
  641.  
  642. Anyway, try my DeskTopMovie program (part of MovieTrilogy
  643. available from sumex). You can import the movie and convert it to
  644. AIFF format. I tried on a 4:52 audio track and resulted in a 47MB
  645. file.
  646.  
  647. ________________________________________________________________
  648. Paul C.H. Ho   paulcho@io.org         Pink Elephant Technologies
  649. Paul_C.H._Ho@magic-bbs.corp.apple.com   74020.772@compuserve.com
  650.  
  651.  
  652.  
  653. +++++++++++++++++++++++++++
  654.  
  655. >From jwang@soda.berkeley.edu (James Wang)
  656. Date: 26 Mar 1994 21:53:15 GMT
  657. Organization: Computer Science Undergrad Assoc., UCBerkeley
  658.  
  659. In article <2n1nfo$m4n@ionews.io.org>, Roy Wood <rrwood@ionews.io.org> wrote:
  660.  
  661. >does anyone know if it is possible to use QuickTime to read audio files using
  662. >a non-Apple CD ROM drive?
  663.  
  664. it's not possible to digitize audio tracks from anything but an apple
  665. CD300, CD300i, or CD300+ using QuickTime 1.6.1.
  666.  
  667.  
  668. >And as far as using QuickTime goes, it works, but it's kind of indirect.
  669. >Has anyone played around with writing a device driver that allows the audio
  670. >tracks to be read directly?  I know there would be all kinds of nuisance
  671.  
  672. i read in MacUser that Disk-to-Disk is one commerical package
  673. that does this with good third-party drive support.
  674.  
  675.  
  676. +++++++++++++++++++++++++++
  677.  
  678. >From dspman@aol.com (DSPman)
  679. Date: 26 Mar 1994 23:09:02 -0500
  680. Organization: America Online, Inc. (1-800-827-6364)
  681.  
  682. I've read CD audio from a CD-300i into QuickTime movies but it's 
  683. screwed up.  The left and right channels intermittently switch.  
  684. I had heard that there was a bug in the ROMs or something.  Can 
  685. anyone confirm this?  Will Apple fix this?
  686. I expected to do this with my 840av but something is wrong.
  687.  
  688. George Warner
  689. warnergt@aloft.att.com
  690.  
  691.  
  692. +++++++++++++++++++++++++++
  693.  
  694. >From Manuel Veloso <veloso@netcom.com>
  695. Date: Sun, 27 Mar 1994 23:18:16 GMT
  696. Organization: Ibex Productions
  697.  
  698. In article <2mq6cn$jr5@hopper.acm.org> , bfitz@ACM.ORG writes:
  699. >How can I read the digital audio data from an audio CD in a usable
  700. >(mungeable) format? Ideally, I want to get 44Khz 16-bit stereo data which
  701. >I can then process myself (using custom soudn processing routines).
  702.  
  703. There was a code snippet posted to alt.sources.mac that let
  704. you suck audio straight from the CD into a file. I'm not
  705. sure where the archives are, but it's up there.
  706.  
  707. +++++++++++++++++++++++++++
  708.  
  709. >From mxmora@unix.sri.com (Matt Mora)
  710. Date: 28 Mar 1994 13:41:37 -0800
  711. Organization: SRI International, Menlo Park, CA
  712.  
  713. In article <2n1nfo$m4n@ionews.io.org> rrwood@ionews.io.org (Roy Wood) writes:
  714.  
  715. >Has anyone played around with writing a device driver that allows the audio
  716. >tracks to be read directly?  I know there would be all kinds of nuisance
  717. >problems with it, but it should be possible.  Anybody listening on this
  718. >one?  I'd be willing to give it a try if I could get some info about the
  719. >SCSI commands that allow reading of data from the audio part of the disk....
  720.  
  721. I believe Apple has already written one. It documented in a tech note.
  722. You make calls to the driver to control the cd rom drive. I'm using it
  723. in my cd application. The code to start you off is on the developer CD.
  724.  
  725. Xavier
  726.  
  727.  
  728.  
  729.  
  730.  
  731. -- 
  732. ___________________________________________________________
  733. Matthew Xavier Mora                       Matt_Mora@sri.com
  734. SRI International                       mxmora@unix.sri.com
  735. 333 Ravenswood Ave                    Menlo Park, CA. 94025
  736.  
  737. ---------------------------
  738.  
  739. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  740. Subject: I crashed a Power Mac!
  741. Date: 23 Mar 94 16:43:47 +1300
  742. Organization: University of Waikato, Hamilton, New Zealand
  743.  
  744. People, I have managed, without really trying, to write and distribute a
  745. PowerMac-incompatible program.
  746.  
  747. Get your FTP self over to Sumex and pick up the file
  748.  
  749.     info-mac/disk/fix-icons.hqx
  750.  
  751. (or something like that). That program completely goes off into the weeds on
  752. a 6100/60. I just tried sending an update, and it was (quite rightly) rejected
  753. by one of the moderators, as it appears they are now testing submissions on
  754. a Power Mac. But of course the existing version already in the archive has
  755. the same problem.
  756.  
  757. And you know what the problem is? I'm calling InitFonts before InitGraf.
  758. I don't know *where* I got the idea that this was the right thing to do--I
  759. just checked Inside Mac Vol I, and I am WRONG. Yet I've been doing this for
  760. goodness knows how long, and I *never* got a crash on any other Mac before.
  761. Never.
  762.  
  763. Gee, I feel so embarrassed about such an elementary stuffup...
  764.  
  765. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  766. Info & Tech Services Division              fax: +64-7-838-4066
  767. University of Waikato            electric mail: ldo@waikato.ac.nz
  768. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  769.  
  770. +++++++++++++++++++++++++++
  771.  
  772. >From wangd@CS.ColoState.EDU ( danny wang)
  773. Date: 23 Mar 94 05:42:55 GMT
  774. Organization: Colorado State University -- Computer Science Department
  775.  
  776. I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  777. that count as a real crash? I will be trying to do some more REAL software
  778. trials on that box pretty soon...ha, ha, ha. (evil grin)
  779.  
  780. --
  781. Intel is not even half of intelligence....
  782. *******************************************************************************
  783. There's no such thing as chance;                 wangd@CS.ColoState.EDU    
  784. And what to us seems merest accident             wang@lamar.ColoState.EDU
  785. Springs from the deepest source of destiny.      cs152bs1@lamar.ColoState.EDU 
  786.   --Johann Christoph Friedrich von Schiller      Just livin' in my SANITARIUM.
  787.     1759-1805
  788. *******************************************************************************
  789. Speak 68040 and carry a PowerPC 620....
  790.  
  791. +++++++++++++++++++++++++++
  792.  
  793. >From d88-jwa@mumrik.nada.kth.se (Jon W‰tte)
  794. Date: 23 Mar 1994 08:35:50 GMT
  795. Organization: Royal Institute of Technology, Stockholm, Sweden
  796.  
  797. In <1994Mar23.164347.26777@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  798.  
  799. >And you know what the problem is? I'm calling InitFonts before InitGraf.
  800.  
  801. That's a result of the new ROMs (which you will see in 68k Macs as well)
  802. not of the PowerPC as such.
  803.  
  804. -- 
  805.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  806.   "It was, in fact, cool as all get-out.  Fortunately it was a little
  807.    too late (historically speaking) to be groovy."
  808.                      -- Dennis Pelton
  809.  
  810. +++++++++++++++++++++++++++
  811.  
  812. >From jwbaxter@olympus.net (John W. Baxter)
  813. Date: Wed, 23 Mar 1994 10:30:08 -0800
  814. Organization: Internet for the Olympic Peninsula
  815.  
  816. In article <1994Mar23.054255.19492@yuma>, wangd@CS.ColoState.EDU ( danny
  817. wang) wrote:
  818.  
  819. > I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  820. > that count as a real crash? I will be trying to do some more REAL software
  821. > trials on that box pretty soon...ha, ha, ha. (evil grin)
  822.  
  823. You probably only appeared to crash the Power Mac with ResEdit.  For a long
  824. time, the Memory Manager has been quietly helping developers by fixing some
  825. of their dumb errors (because there were far too many broken applications
  826. not to).  Some future Memory Manager will stop helping (and speed up as a
  827. result).  With the Power Mac, we see a step along the way:  if a debugger
  828. is installed, the Memory Manager does a user break, saying something like
  829. "Access Fault".  If you say to continue (G command in MacsBug), processing
  830. continues, with the old fix-up code executed.
  831.  
  832. This is supposed to encourage developers (who really should have a debugger
  833. <grin>) to fix their code.
  834.  
  835. As it happens, one of the broken applications is ResEdit 2.1.1
  836.  
  837. [If you only have half of the debugging installed (the "nub" but no
  838. low-level debugger) you get a 30-second freeze while the nub looks madly
  839. for a debugger, then the nub presses on.]
  840. -- 
  841. John Baxter    Port Ludlow, WA, USA  [West shore, Puget Sound]
  842.    jwbaxter@pt.olympus.net
  843.  
  844. +++++++++++++++++++++++++++
  845.  
  846. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  847. Date: 24 Mar 94 10:47:51 +1300
  848. Organization: University of Waikato, Hamilton, New Zealand
  849.  
  850. How about this for the smallest program that will crash a PowerMac, but
  851. run OK on a 68K Mac:
  852.  
  853.     #include <Fonts.h>
  854.  
  855.     void main(void)
  856.       {
  857.     InitFonts();
  858.       }
  859.  
  860. (OK, so it doesn't actually do anything, so what did you expect.)
  861.  
  862. Here's the compiled version, if you want to try it:
  863.  
  864. (This file must be converted with BinHex 4.0)
  865. :$9"[Gf9b6@&M3h*KFfJ!39"36$q3"#!!N!F%FVi6!*!%!3#3!`2B!!!#f!#3!jU
  866. E!(dG!!#!rrm!!"LT!(dG3!#!rrm!!"LY!(dG0!!#r`e3EhGPFNeKBd0bBA0S!J#
  867. 3!d&38%`rN!3K!*!%J!!!39"36$q3"#%!N!5!!*!5UEFFD3#3"J4b!*!-"Y-P!*!
  868. $&"J09(PbB@jZEh0KGA*eF`#3&!E9*3#3!a3`!*!L"YBP!*!$&$8!N#N)!&!!!DM
  869. q6R8!!!*#!*!$#J#3!h)!N!4#H!T+RFj1ZJ!d6VS!*%*R5(N!!2rr5'm!"%KA5(J
  870. !!5)krpC1Y4!!)'d!E%k3!+Rd)MVrbQF%6V83!%je@Bm[2&T&8Np#CkQJ*&GCMbm
  871. m4%&838*RUD!J9b"3)RJ*##45B!ibf'B+-KTJ!N)C8FRrr,[*CZkTSkQM@Bm[2%4
  872. 548a#CkQJ)&HJ*5"3iN!N$@!'-KM9Y4!!8FMrq+QM6R8JAc)B0"L`@&I*rrT+3QI
  873. q6[!Jr#"I-KJd',#B9mRrqNT#Crj1m#$k)&mb'$3BX%*Z#T!!3@d'd%""m!!#-""
  874. RrNl`!!!J,`!%,d%!"#)[!!J[A`!%51Fm!#3!*J&)3X6$+!!U!8K&b-A84%K#N!2
  875. !`G##60m!2#)I6R8J,`!%,d%!"#)[!!J[A`!%51Fa!%kk!*a-h`#-)Kp1G5![!!3
  876. [33!%)Lm!##pI!!4)jc%!6VS!I#!"60m!M#)I6R8J,`!%,d%!"#)[!!J[A`!%51F
  877. a!%kk!#a-h`#-)Kp1G5![!!3[33!%)Lm!##pI!!4)jc%!6VS!$#!"60m!M#)I6R9
  878. +J'SF5S&U$%5!4)&1ZJ!J4)&1G85!6VS!&N5!4)&1G8U"DJT%J8kk!!C%J%je,M`
  879. !!2rrXS"M"L)!F!"1GE#(BJb!`8K!-J"#3%K!6R@bKf)D,J"#3%K!J-&)3%K(2J"
  880. )4il"-!G)4c)(6R8N!#B"iSMLLE+(B[L!`F#(-J2#`#i$5%I1`%K(dSGP#*+#BJ4
  881. %J8je8d"Jj%je!*!$D!#3!hJ!N!GB!*!$)!!)2c`!!DR`!+Br2!!"UI!!ZMmm!!'
  882. Tm!$12c`!!DR`!1Sr2!!"UI!")$mm!!'Tm!&!2c`!!DR`!@)r2!!"UI!"JMmm!!'
  883. Tm!)m2c`!!DR`!!!r2!!#UI!!N!-+!*!$"J#3!`B!N!3"!*!$!pJ!!!,B!*!$QJ"
  884. p('`@aJ#3!a`!QJ!%4%&833#3!bTD49*2!*!$0N4548`!N!0#3dp%43!#!%j659T
  885. &!*!$FJ!!rrmS!*!*rrm)!!!%!*!'rrmS!!!)!*!&![rr1!!!$!#3"3(rra`!!"J
  886. !N!ErrbJ!!Pi!N!6rN!3!!!,+!*!%Y$F:
  887.  
  888. Let me know how it works for you!
  889.  
  890. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  891. Info & Tech Services Division              fax: +64-7-838-4066
  892. University of Waikato            electric mail: ldo@waikato.ac.nz
  893. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  894.  
  895. +++++++++++++++++++++++++++
  896.  
  897. >From nagle@netcom.com (John Nagle)
  898. Date: Thu, 24 Mar 1994 00:11:10 GMT
  899. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  900.  
  901. wangd@CS.ColoState.EDU ( danny wang) writes:
  902. >I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  903. >that count as a real crash? I will be trying to do some more REAL software
  904. >trials on that box pretty soon...ha, ha, ha. (evil grin)
  905.  
  906.    It's not a protected mode system.  It's a Macintosh.  Crashes just like
  907. a Macintosh.  That's Apple's idea of a feature.
  908.  
  909.                     John Nagle
  910.  
  911. +++++++++++++++++++++++++++
  912.  
  913. >From d88-jwa@mumrik.nada.kth.se (Jon W‰tte)
  914. Date: 24 Mar 1994 09:12:19 GMT
  915. Organization: The Royal Institute of Technology
  916.  
  917. In <1994Mar24.104751.26808@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  918.  
  919. >How about this for the smallest program that will crash a PowerMac, but
  920. >run OK on a 68K Mac:
  921. >    #include <Fonts.h>
  922. >    void main(void)
  923. >      {
  924. >    InitFonts();
  925. >      }
  926.  
  927. It is, of course, incorrect according to IM. It won't run
  928. on an ordinary Mac running Discipline.
  929. -- 
  930.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  931.     Not speaking for IBM.
  932.  
  933. +++++++++++++++++++++++++++
  934.  
  935. >From pottier@fregate.ens.fr (Francois Pottier)
  936. Date: 24 Mar 1994 12:39:37 GMT
  937. Organization: Ecole Normale Superieure, PARIS, France
  938.  
  939. In article <jwbaxter-230394103008@ptpm009.olympus.net>,
  940. John W. Baxter <jwbaxter@olympus.net> wrote:
  941.  
  942. >result).  With the Power Mac, we see a step along the way:  if a debugger
  943. >is installed, the Memory Manager does a user break, saying something like
  944. >"Access Fault".  If you say to continue (G command in MacsBug), processing
  945. >continues, with the old fix-up code executed.
  946.  
  947. Could you be more precise ? Exactly when does an "Access Fault" happen, and
  948. in what way should current code be fixed ?
  949.  
  950. -- 
  951. Francois Pottier            ___ ___  _    _  / ___  ___    ___
  952. pottier@dmi.ens.fr       /_  /__/ /_|  /| / /  / /  / / /__
  953.               /   / \  /  | / |/ /___ /__/ / ___/ _
  954.                           /
  955.  
  956. +++++++++++++++++++++++++++
  957.  
  958. >From Manuel Veloso <veloso@netcom.com>
  959. Date: Sat, 26 Mar 1994 05:51:51 GMT
  960. Organization: Ibex Productions
  961.  
  962. In article <2ms1m9$5ao@nef.ens.fr> Francois Pottier, pottier@fregate.ens.fr writes:
  963. >Could you be more precise ? Exactly when does an "Access Fault" happen, and
  964. >in what way should current code be fixed ?
  965.  
  966. It was something about one of the exception vectors doing a stripaddress/retry
  967. on a non-24-bit clean address (ie: if an illegal address exception was
  968. caused, the vector would strip and retry). It's in one of the new
  969. tech notes somewhere.
  970.  
  971. +++++++++++++++++++++++++++
  972.  
  973. >From ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  974. Date: 28 Mar 94 10:09:16 +1300
  975. Organization: University of Waikato, Hamilton, New Zealand
  976.  
  977. In article <2mrlhj$8j4@news.kth.se>, d88-jwa@mumrik.nada.kth.se (Jon W‰tte) writes:
  978. > In <1994Mar24.104751.26808@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  979. >
  980. >>How about this for the smallest program that will crash a PowerMac, but
  981. >>run OK on a 68K Mac:
  982. >>    #include <Fonts.h>
  983. >>    void main(void)
  984. >>      {
  985. >>    InitFonts();
  986. >>      }
  987. >
  988. > It is, of course, incorrect according to IM. It won't run
  989. > on an ordinary Mac running Discipline.
  990.  
  991. Yeah, but lots of release software (including some from Apple!) won't run
  992. under Discipline, am I right? So I'm not sure if that really counts... :-)
  993.  
  994. (By the way, Jon, can you stop e-mailing me copies of your postings? One copy
  995. of your wisdom is enough. Thanks!)
  996.  
  997. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  998. Info & Tech Services Division              fax: +64-7-838-4066
  999. University of Waikato            electric mail: ldo@waikato.ac.nz
  1000. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
  1001.  
  1002. +++++++++++++++++++++++++++
  1003.  
  1004. >From ez006626@othello.ucdavis.edu (David Xavier Clancy)
  1005. Date: Mon, 28 Mar 1994 07:19:12 GMT
  1006. Organization: University of California, Davis
  1007.  
  1008. danny wang (wangd@CS.ColoState.EDU) wrote:
  1009. : I have crashed a friend's PowerMac(gee I wish I had one) with ResEdit. Does
  1010. : that count as a real crash? I will be trying to do some more REAL software
  1011. : trials on that box pretty soon...ha, ha, ha. (evil grin)
  1012.  
  1013. ResEdit Crashes rather nicetly on a 68k mac too.  In fact, it's good if it
  1014. crashes in the same places/conditions.
  1015.  
  1016. --xav
  1017.  
  1018.  
  1019. +++++++++++++++++++++++++++
  1020.  
  1021. >From "Donpaul C. Stephens" <deathbird+@CMU.EDU>
  1022. Date: Mon, 28 Mar 1994 08:01:31 -0500
  1023. Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
  1024.  
  1025. According to the article in BYTE magazine,
  1026. the Virtual Memory in the Power Macintosh line is implemented w/ Read
  1027. only and Read/Write blocks. The read only blocks <ie program code>
  1028. cannot be altered. The R/W blocks can be altered by any stray program
  1029. until Apple expands the services of the nano-kernel
  1030.  
  1031. the nano-kernel is the Hardware Abstraction Layer [HAL] on which the
  1032. system runs. It is the only code that runs in supervisor mode in PowerMac
  1033. the rest, incl the OS runs in User mode [it probably makes it easier to
  1034. emulate the 680x0 in the system if it is a user process like the rest
  1035.  
  1036. The article then explains why the 680x0 macs are as crash prone as
  1037. windows: everything runs in Supervisor Mode
  1038.  
  1039. No, its not a feat to crash a Power Mac <it is harder to do than in a
  1040. 680x0 mac however>. But I wouldn't expect the OS to kill stray processes
  1041. for any memory violations until 1Q 95, when system 8 is rumored to be
  1042. released
  1043.  
  1044. ---------------------------
  1045.  
  1046. >From bdiamand@netcom.com (Ben Diamand)
  1047. Subject: Multiple HD Reads, can it be done?
  1048. Date: Thu, 17 Mar 1994 18:48:52 GMT
  1049. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1050.  
  1051.  
  1052. I'm pretty sure that the answer to this is 'no' for most Macs, but here 
  1053. goes anyway:  Can the pre-quadra Mac II's(IIci, SE/30) perform 
  1054. simultaneous(sp?) reads from different scsi devices on the same scsi 
  1055. chain.  As a further question, if I do ASYNC reads, will future Macs that 
  1056. can do this(assuming current ones cannot) work as expected?
  1057.  
  1058. Thanks!
  1059.  
  1060. Ben Diamand
  1061. bdiamand@netcom.com
  1062. ALINK:bdiamand
  1063.  
  1064. +++++++++++++++++++++++++++
  1065.  
  1066. >From rang@winternet.mpls.mn.us (Anton Rang)
  1067. Date: 27 Mar 1994 21:56:57 GMT
  1068. Organization: Minnesota Angsters
  1069.  
  1070. In article <764568523.AA03331@psybbs.durham.nc.us> Ben.Diamand%f1.n3641.z1@psybbs.durham.nc.us (Ben Diamand) writes:
  1071. >I'm pretty sure that the answer to this is 'no' for most Macs, but here 
  1072. >goes anyway:  Can the pre-quadra Mac II's(IIci, SE/30) perform 
  1073. >simultaneous(sp?) reads from different scsi devices on the same scsi 
  1074. >chain.
  1075.  
  1076.   The old SCSI manager does not support interleaved access to multiple
  1077. devices on one SCSI chain.  (So the answer is, "No.")
  1078.  
  1079. >As a further question, if I do ASYNC reads, will future Macs that 
  1080. >can do this(assuming current ones cannot) work as expected?
  1081.  
  1082.   Well, the new SCSI manager (4.3) does support interleaved access, so
  1083. you can get to more than one device at a time.
  1084.  
  1085.   But your comment on async reads leads me to believe that you're
  1086. really talking about disk drivers.  (Are you using Read(), or
  1087. SCSIRead()?)
  1088.  
  1089.   Disk drivers follow basically the same laws; if you try to do an
  1090. asynchronous read, and you're on a pre-4.3 machine or have a pre-4.3
  1091. driver, it will complete synchronously.  However, if you have a 4.3
  1092. machine and a 4.3 driver, *or* an accelerator which supports
  1093. asynchronous i/o, then an asynchronous read will work as you expect,
  1094. as long as you're doing direct i/o to the driver.
  1095.  
  1096.   Yet another caveat.  If you're going through the current file
  1097. system, you can only have one I/O pending at a time, so you can only
  1098. access one disk at a time, even if all the other conditions are OK for
  1099. doing things asynchronously.  (As far as I know, anyway...anyone know
  1100. differently?)
  1101. --
  1102. Anton Rang (rang@winternet.mpls.mn.us)
  1103.  
  1104. ---------------------------
  1105.  
  1106. >From long@mcntsh.enet.dec.com (Rich Long)
  1107. Subject: PBDTGetAPPL on a network volume?
  1108. Date: 20 MAR 94 15:16:46
  1109. Organization: Digital Equipment Corporation
  1110.  
  1111.  
  1112. I have some code that is using PBDTGetAPPL against all mounted volumes in
  1113. order to see if the owner of a given creator code is present. This works fine
  1114. except for a disk that is mounted from a System 7 server. PBDTGetAPPL for this
  1115. volume returns a -43 error instead of the afpItemNotFound I might expect. The
  1116. documentation is not very helpful -- any ideas? ( I am checking the
  1117. hasDesktopMgr bit and PBDTGetPath returns no errors ).
  1118.  
  1119. Thanks,
  1120. Rich
  1121.  
  1122. +++++++++++++++++++++++++++
  1123.  
  1124. >From Tim S. <tim_swihart@quickmail.apple.com>
  1125. Date: Mon, 28 Mar 1994 19:41:26 GMT
  1126. Organization: System Updates
  1127.  
  1128. In article <2mib3e$ph9@nntpd.lkg.dec.com> Rich Long, long@mcntsh.enet.dec.com
  1129. writes:
  1130. >I have some code that is using PBDTGetAPPL against all mounted volumes in
  1131. >order to see if the owner of a given creator code is present. This works fine
  1132. >except for a disk that is mounted from a System 7 server. PBDTGetAPPL for this
  1133. >volume returns a -43 error instead of the afpItemNotFound I might expect. The
  1134. >documentation is not very helpful -- any ideas? ( I am checking the
  1135. >hasDesktopMgr bit and PBDTGetPath returns no errors ).
  1136. >
  1137. >Thanks,
  1138. >Rich
  1139.  
  1140.  
  1141. I had a similar problem when writing BNDL Banger - you have to special case
  1142. servers and use AppleTalk calls instead.  I special cased them and ignored
  1143. them (since servers typically don't let users have enough privs to munge in
  1144. their desktop databases and that's BNDL Banger's sole reason for existing). 
  1145. You'll need to wade through the AppleTalk headers/docs...
  1146.  
  1147.  
  1148. Hope that helps,
  1149. Tim S.
  1150. My opinions are my own. They're my feet and I'll put them in my mouth if I
  1151. want to. Do not expose to open flame. Some Assembly required. Remove before
  1152. flight. Under penalty of law, do not remove this tag. Caution, contains silica
  1153. gel, do not eat.  Do not read while operating a motor vehicle or heavy
  1154. equipment. In case of eye contact, flush with water.  This supersedes all
  1155. previous notices.
  1156.  
  1157. ---------------------------
  1158.  
  1159. >From quinn@cs.uwa.edu.au (Quinn "The Eskimo!")
  1160. Subject: PEF, XCOFF Info Wanted
  1161. Date: Mon, 28 Mar 1994 09:45:16 +0800
  1162. Organization: Department of Computer Science, The University of Western Australia
  1163.  
  1164. In article <2mv3b4$oa2@news.kth.se>, d88-jwa@mumrik.nada.kth.se (Jon
  1165. W‰tte) wrote:
  1166.  
  1167. >You should remove the cfrg resource if you remove the data fork PEF.
  1168.  
  1169. Talking about PEF... (:  Where can I find a good description of the
  1170. internals of the PEF and XCOFF file formats?
  1171. -- 
  1172. Quinn "The Eskimo!"      <quinn@cs.uwa.edu.au>     "Support HAVOC!"
  1173. Department of Computer Science, The University of Western Australia
  1174.  
  1175. +++++++++++++++++++++++++++
  1176.  
  1177. >From platypus@cirrus.som.cwru.edu (Gary Kacmarcik)
  1178. Date: 28 Mar 1994 03:15:46 GMT
  1179. Organization: Case Western Reserve University, Cleveland, Ohio (USA)
  1180.  
  1181.  
  1182. In article <quinn-280394094516@eriodon.cs.uwa.oz.au> quinn@cs.uwa.edu.au (Quinn "The Eskimo!") writes:
  1183. >
  1184. > Talking about PEF... (:  Where can I find a good description of the
  1185. > internals of the PEF and XCOFF file formats?
  1186.  
  1187. if you want a Q&D description, you can probably get a good idea from the
  1188. DumpPEF and DumpXCOFF MPW tools.
  1189.  
  1190. if you want a "complete" description of PEF, you need to license it from
  1191. Apple.
  1192.  
  1193. if you want more info about XCOFF, you can get the O'Reilly book
  1194. "Understanding and Using COFF" (Gintaras R. Gircys), and try to get some
  1195. of the headers from an RS/6000.  XCOFF is based on COFF, so the book'll
  1196. get you most of the way there.  IBM also has a book that describes the
  1197. XCOFF format, but i don't have the reference handy.
  1198.  
  1199. -gary j kacmarcik
  1200. platypus@curie.ces.cwru.edu
  1201.  
  1202. ---------------------------
  1203.  
  1204. >From mdtaylor@apple.com (Mark Taylor)
  1205. Subject: QuickDraw Question
  1206. Date: Tue, 22 Mar 1994 18:18:03 GMT
  1207. Organization: Apple Computer, Inc.
  1208.  
  1209. Greetings,
  1210.  
  1211. I have a very irritating QuickDraw problem which I'm hoping someone can
  1212. advise me about.  It could be it's hopeless...
  1213.  
  1214. In my app, I put up a marquee as a target "zone" for dragging and dropping.
  1215. The marquee is circular, so I xor a FrameOval to create it.  Unfortunately,
  1216. whenever my custom cursor is within the oval, the image of the cursor is
  1217. alternately hidden and shown.  To the user this looks like a vibrating
  1218. cursor.
  1219.  
  1220. I've tried using a region to draw the marquee with the same result.  I've
  1221. also
  1222. done the marquee as a rectangle (as a test) and the problem goes away -
  1223. however, I really need a circular target - not a rectangle.
  1224.  
  1225. I'm guessing that QuickDraw obscures the cursor during drawing if the
  1226. cursor is
  1227. within an oval or region.  Does this sound right?  Is this true?  If so, is
  1228. there anyway to defeat this?
  1229.  
  1230. Hope someone can help!
  1231.  
  1232. Mark
  1233.  
  1234. +++++++++++++++++++++++++++
  1235.  
  1236. >From KLUEV@jonathan.srcc.msu.su
  1237. Date: Sat, 26 Mar 1994 16:15:14 +0300
  1238. Organization: (none)
  1239.  
  1240. In article <mdtaylor-220394101803@17.142.0.47>
  1241. mdtaylor@apple.com (Mark Taylor) writes:
  1242. >In my app, I put up a marquee as a target "zone" for dragging and dropping.
  1243. >The marquee is circular, so I xor a FrameOval to create it.  Unfortunately,
  1244. >whenever my custom cursor is within the oval, the image of the cursor is
  1245. >alternately hidden and shown.  To the user this looks like a vibrating
  1246. >cursor.
  1247. >I've tried using a region to draw the marquee with the same result.  I've
  1248. >also
  1249. >done the marquee as a rectangle (as a test) and the problem goes away -
  1250. >however, I really need a circular target - not a rectangle.
  1251. >I'm guessing that QuickDraw obscures the cursor during drawing if the
  1252. >cursor is
  1253. >within an oval or region.  Does this sound right?  Is this true?  If so, is
  1254. >there anyway to defeat this?
  1255.  
  1256.   QuickDraw always Shield/Show cursor when it is drawing onscreen or
  1257. copying from screen. The actual hiding of cursor occurred only if
  1258. drawing can disturb cursor (i.e. drawing's and cursor's rects overlap).
  1259. This vibrating cursor doesn't go away in case of rects, but QD
  1260. draws rects much more faster than ovals or regions. A little could
  1261. be done about this flickering.
  1262.  
  1263.   One way to minimize this flickering is to minimize your drawing.
  1264. 1.Don't 'move' marquees, stop them.
  1265. 2.Draw only when user moves mouse.
  1266. 3.When you need to draw, do a minimal number of QD calls.
  1267.   (Finder does this.). So, if you are doing something like that:
  1268.  
  1269.  "PenMode (xor)
  1270.   FrameRgn (Old)  - To show first Rgn
  1271. Whenever user moves mouse:
  1272.   FrameRgn (Old) - To erase old
  1273.   FrameRgn (New) - To draw new" (2 QD operations).
  1274.  
  1275. try to change your code to something like this:
  1276.  
  1277.  "PenMode (xor)
  1278.   CopyRgn (Old, Temp);
  1279.   InsetRgn (Temp, 1, 1);
  1280.   XorRgn (Old, Temp, Old); - To create one pixel "outline" region.
  1281.  
  1282.   PaintRgn (Old); - To show first
  1283. Whenever user moves mouse:
  1284.   /* Create New Rgn using the same tehnique as Old. */
  1285.   XorRgn (Old, New, Temp); - Some preparation
  1286.   PaintRgn (Temp); - Makes all drawing" (1 QD operation).
  1287.  
  1288. If you want to do this with ovals, just convert them to regions.
  1289.  
  1290. This should reduce cursor flickering.
  1291.  
  1292. Michael Kluev.
  1293.  
  1294. +++++++++++++++++++++++++++
  1295.  
  1296. >From kenlong@netcom.com (Ken Long)
  1297. Date: Sun, 27 Mar 1994 00:05:06 GMT
  1298. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1299.  
  1300. Quickdraw probably obscures the cursor in such areas unless you tell it 
  1301. otherwise.  In Color It 2.3, if you make a selection, and move the cursor 
  1302. within the bounds of the region, it changes to a mirror image of the 
  1303. standard arrow cursor to facilitate dragging the selection.
  1304.  
  1305. Therefore, in order to track down source for such goings on, my approach 
  1306. would be to get some which does, or may do, this.
  1307.  
  1308. First choice would be C source - Pascal if no C could be found.
  1309.  
  1310. Logical downloadable targets:  DTS-Draw (Apple ftp).  Get the source and 
  1311. do a SerchFiles 1.3 search for the string "cursor."  It may be prudent to 
  1312. run the project and see if the cursor (a) is visible within a selection, 
  1313. (b) changes if so.
  1314.  
  1315. Alternative choice:  Image 1.49 or better.  Get the built app and test as 
  1316. before.  If it does what you want, get the current source and do the 
  1317. string search to track down the routines.
  1318.  
  1319. A knowledgeable programmer could probably just give you a fragment or 
  1320. snippet.  But if you had no one to ask for a fast answer, string searches 
  1321. of running C source are so fast they are almost instantaneous.
  1322.  
  1323. -Ken-
  1324.  
  1325. ---------------------------
  1326.  
  1327. >From deway@css.itd.umich.edu (Doug Way)
  1328. Subject: Quickdraw Blend Function Inaccurate?
  1329. Date: 23 Mar 1994 22:41:03 GMT
  1330. Organization: University of Michigan ITD/User Services
  1331.  
  1332. Does anyone out there know if there are any innaccuracies with Quickdraw's
  1333. blend function?  That is, the process of blending two colors together by
  1334. using PenMode(blend) and drawing one color on top of another?  (I seem
  1335. to vaguely remember someone talking about this here long ago, so if this
  1336. is true, please post!)
  1337.  
  1338. I'm trying to write a game which displays objects being reflected on a
  1339. colored surface.  The simplest way to do this seemed to be to draw with
  1340. PenMode(blend) so that the object colors and surface colors are blended
  1341. together to simulate a reflection.  I know that Quickdraw uses the
  1342. function:
  1343.  
  1344.                  weight * sourceColor + (65535 - weight) * destColor
  1345. blendedColor  =  ---------------------------------------------------
  1346.                                       65535
  1347.  
  1348. This function determines the blend for each of the red, green and blue
  1349. components, where weight is a number between 0 and 65535.  When it
  1350. determines the RGB values of the blended color, Quickdraw then (presumably)
  1351. looks up the closest color in the palette which matches, and draws that
  1352. color.
  1353.  
  1354. This is where I seem to be having a problem.  I even went through the
  1355. trouble of setting up my own palette which would contain the exact colors
  1356. which would need to be blended.  But Quickdraw sometimes seems to pick
  1357. the wrong color as the blended color.  The color is not usually off by
  1358. more than 5 or 10%, but that's still pretty bad in my book.
  1359.  
  1360. Here's a more concrete example.  If I have:
  1361.  
  1362. sourceColor.red   = 35000      and      destColor.red   = 45000
  1363. sourceColor.green =  7000               destColor.green = 12000
  1364. sourceColor.blue  = 12000               destColor.blue  = 17000
  1365.  
  1366. and the blend weight = 8000
  1367.  
  1368. then the blended color should be:
  1369.  
  1370. blendedColor.red   = 43800
  1371. blendedColor.green = 11400
  1372. blendedColor.blue  = 16400
  1373.  
  1374. So, early on in my program I add these three colors to the palette (along
  1375. with a bunch of others).  I then draw the destination color (destColor)
  1376. on the screen.  The PenMode is then set to blend (w/ weight = 8000), and
  1377. the source color is drawn on top of the destColor.  For some reason, the
  1378. resulting color is still the destColor, not the blendedColor it should be.
  1379. I know the blended color is available in the color table, because I can
  1380. use RGBForeColor (or PMForeColor) to set it and draw it somewhere else
  1381. on the screen.
  1382.  
  1383. (Hmmm, I just remembered that I'm doing this on an offscreen pixmap, but
  1384. this shouldn't be a problem since both offscreen and onscreen pixmaps
  1385. have the same .pmTable color table.)
  1386.  
  1387. Well, any ideas?  I realize there may be some quirk in my code which is
  1388. causing this, but I wanted to see if anyone knew about any known problems
  1389. before I went on an all-out effort to isolate the problem.  I'll gladly
  1390. give credit in my game to anyone who can help out.  Thanks!
  1391.  
  1392.  
  1393. /---------------DISCLAIMER:----My opinions are, remarkably, exactly the----\
  1394. |                              same as those of my employer.  In fact,     |
  1395. |   Doug Way     (Bebound!)    I am merely a mouthpiece through which      |
  1396. \---deway@css.itd.umich.edu----their collective thoughts pass unaltered.---/
  1397.  
  1398. +++++++++++++++++++++++++++
  1399.  
  1400. >From lowry@shiva.eche.ualberta.ca (Brian Lowry)
  1401. Date: 24 Mar 1994 16:19:38 GMT
  1402. Organization: Chem Eng - Univ of Alberta
  1403.  
  1404. In article <2mqghv$s97@lastactionhero.rs.itd.umich.edu>,
  1405. deway@css.itd.umich.edu (Doug Way) wrote:
  1406.  
  1407. > Does anyone out there know if there are any innaccuracies with Quickdraw's
  1408. > blend function?  That is, the process of blending two colors together by
  1409. > using PenMode(blend) and drawing one color on top of another?
  1410.  
  1411. [details omitted]
  1412.  
  1413. > (Hmmm, I just remembered that I'm doing this on an offscreen pixmap, but
  1414. > this shouldn't be a problem since both offscreen and onscreen pixmaps
  1415. > have the same .pmTable color table.)
  1416.  
  1417.   How can a blend be accurate on a CLUT device?  The inverse colour table
  1418. is only five bits, so you're always going to have errors... A better
  1419. solution might be to use 24 bit GWorlds offscreen and then dither them to
  1420. the CLUT device, since this would have the added benefit of not making 16
  1421. and 24 bit users' screens look like 8 bit messes.
  1422.  
  1423. -- 
  1424.  
  1425. Brian Lowry
  1426.  
  1427. +++++++++++++++++++++++++++
  1428.  
  1429. >From lari@cs.unc.edu (Humayun Lari)
  1430. Date: 24 Mar 1994 16:01:28 -0500
  1431. Organization: The University of North Carolina at Chapel Hill
  1432.  
  1433. In article <lowry-240394082729@lowry.eche.ualberta.ca>,
  1434. Brian Lowry <lowry@shiva.eche.ualberta.ca> wrote:
  1435. >In article <2mqghv$s97@lastactionhero.rs.itd.umich.edu>,
  1436. >deway@css.itd.umich.edu (Doug Way) wrote:
  1437. >
  1438. >> Does anyone out there know if there are any innaccuracies with Quickdraw's
  1439. >> blend function?  That is, the process of blending two colors together by
  1440. >> using PenMode(blend) and drawing one color on top of another?
  1441. [snip]
  1442. >  How can a blend be accurate on a CLUT device?  The inverse colour table
  1443. >is only five bits, so you're always going to have errors... A better
  1444. >solution might be to use 24 bit GWorlds offscreen and then dither them to
  1445. >the CLUT device, since this would have the added benefit of not making 16
  1446. >and 24 bit users' screens look like 8 bit messes.
  1447.  
  1448. Doug, since the default inverse color table is 4-bit, you may want to try a
  1449. MakeITable(NULL, NULL, 5) to generate a 5-bit inverse table for the current
  1450. device. Check IM 5 for details -- I think the 5-bit inverse table requires
  1451. 32K, and MakeITable requires something like 79K just to work, so you need
  1452. to be slightly concerned about memory.
  1453.  
  1454. 'Course, this still won't be perfect, but it'll be better than the default.
  1455. Note that the problem with using 24-bit worlds is that dithering is slow
  1456. and can make 8-bit users' screens look messy. Experiment...
  1457.  
  1458. Humayun Lari
  1459. (lari@cs.unc.edu)
  1460.  
  1461.  
  1462. +++++++++++++++++++++++++++
  1463.  
  1464. >From deway@css.itd.umich.edu (Doug Way)
  1465. Date: 28 Mar 1994 06:25:10 GMT
  1466. Organization: University of Michigan ITD/User Services
  1467.  
  1468. Humayun Lari (lari@cs.unc.edu) wrote:
  1469. : Brian Lowry <lowry@shiva.eche.ualberta.ca> wrote:
  1470. : [snip]
  1471. : >  How can a blend be accurate on a CLUT device?  The inverse colour table
  1472. : >is only five bits, so you're always going to have errors... A better
  1473. : >solution might be to use 24 bit GWorlds offscreen and then dither them to
  1474. : >the CLUT device, since this would have the added benefit of not making 16
  1475. : >and 24 bit users' screens look like 8 bit messes.
  1476.  
  1477. : Doug, since the default inverse color table is 4-bit, you may want to try a
  1478. : MakeITable(NULL, NULL, 5) to generate a 5-bit inverse table for the current
  1479. : device. Check IM 5 for details -- I think the 5-bit inverse table requires
  1480. : 32K, and MakeITable requires something like 79K just to work, so you need
  1481. : to be slightly concerned about memory.
  1482.  
  1483. Thanks for the info.  After reading Brian's response, I went back & read
  1484. the Color Manager chapter of IM 5, and figured out that the 4-bit inverse
  1485. table was the problem.  (I'd been wasting my time looking in the Palette
  1486. Manager & Quickdraw chapters before.)  24-bit screens are not an option here,
  1487. since this is a high-speed game.  (Believe it or not, I'm getting 30 frames
  1488. per second on a IIsi drawing two (fairly small) objects with blended
  1489. reflections.)  In fact, 8 bits is plenty, because there is a small, fixed
  1490. number of colors in each object & in the reflecting wall, and I specifically
  1491. add the possible blending combinations to the palette ahead of time.
  1492.  
  1493. For example, if there are 10 colors in the objects, and 8 colors in the
  1494. wall, then there will be 10*8=80 possible blended colors which I precalculate
  1495. and add to the palette.  No need for 24 bits.  Although I do understand what
  1496. you mean about the color lookup being inaccurate anyway.
  1497.  
  1498. I'll try the 5-bit table.  That should descrease the inaccuracy by half,
  1499. so that may be good enough.  I noticed that IM 5 mentioned that it's
  1500. possible to create your own custom lookup table for even greater accuracy.
  1501. Is this at all practical?
  1502.  
  1503.  
  1504. /---------------DISCLAIMER:----My opinions are, remarkably, exactly the----\
  1505. |                              same as those of my employer.  In fact,     |
  1506. |   Doug Way     (Bebound!)    I am merely a mouthpiece through which      |
  1507. \---deway@css.itd.umich.edu----their collective thoughts pass unaltered.---/
  1508.  
  1509. ---------------------------
  1510.  
  1511. >From danprice@delphi.com
  1512. Subject: Read-Save Styled Text Code
  1513. Date: Sun, 27 Mar 94 17:17:20 -0500
  1514. Organization: Delphi (info@delphi.com email, 800-695-4005 voice)
  1515.  
  1516.  
  1517. I'm trying to get some read/save styled text code of mine to work but have
  1518. had NO success.  I was in a bookstore the other day and noticed that IM:TEXT
  1519. has such code, but I am only a poor student who doesn't have 40$ to shell.
  1520.  
  1521. Anybody have this code that tehy could mail me?  I'm using think Pascal.
  1522.  
  1523.     -dp
  1524.  
  1525.  
  1526. +++++++++++++++++++++++++++
  1527.  
  1528. >From mxmora@unix.sri.com (Matt Mora)
  1529. Date: 28 Mar 1994 13:49:33 -0800
  1530. Organization: SRI International, Menlo Park, CA
  1531.  
  1532. In article <xO-vpwg.danprice@delphi.com> danprice@delphi.com writes:
  1533. >I'm trying to get some read/save styled text code of mine to work but have
  1534. >had NO success.  I was in a bookstore the other day and noticed that IM:TEXT
  1535. >has such code, but I am only a poor student who doesn't have 40$ to shell.
  1536. >Anybody have this code that tehy could mail me?  I'm using think Pascal.
  1537.  
  1538.  
  1539. This should get you going.
  1540.  
  1541.     GetFNum('times', familyID);
  1542.     TextFont(familyID);
  1543.     Textsize(12);
  1544.  
  1545.     myTE := TEStylNew(r, r);  {important! I was using the old call duh:)}
  1546.     TextHandle := GetResource('TEXT', 128);
  1547.     StylHandle := stScrpHandle(GetResource('styl', 128));
  1548. {    TEInsert(TextHandle^, GetHandleSize(TextHandle), myTE);}
  1549. {    TESetSelect(0, $8000, myTE);}
  1550.  
  1551. {    SetStylHandle(StylHandle, myTE);}
  1552.     TEStylInsert(TextHandle^, GetHandleSize(TextHandle), StylHandle, myTE);
  1553. {TESetSelect(0, 0, myTE);}
  1554.     myTe^^.just := 1;
  1555.     TECalText(myTE);
  1556.     TEUpdate(r, myTE);
  1557.  
  1558.  
  1559. Xavier
  1560.  
  1561.  
  1562. -- 
  1563. ___________________________________________________________
  1564. Matthew Xavier Mora                       Matt_Mora@sri.com
  1565. SRI International                       mxmora@unix.sri.com
  1566. 333 Ravenswood Ave                    Menlo Park, CA. 94025
  1567.  
  1568. ---------------------------
  1569.  
  1570. >From cconstan@epdiv1.env.gov.bc.ca (Carl B. Constantine)
  1571. Subject: Try 3: Movie Credit Scrolling - How?
  1572. Date: Thu, 17 Mar 1994 10:04:43 -0800
  1573. Organization: Ministry of Environment, Lands & Parks
  1574.  
  1575. Sorry for the multiple posts (if your server recieved multiple posts) but
  1576. our NNTP server is having problems.
  1577.  
  1578. I would like to know how to do movie credit style scrolling like I have
  1579. seen in many people's about box's.  Can someone give me a code snippet or
  1580. anything like that?
  1581.  
  1582. Thanks in advance.
  1583.  
  1584.  
  1585. -- 
  1586. =========================================================================
  1587. Carl B. Constantine                      B.C. Environment, Lands & Parks
  1588. End-User Support Analyst                 CCONSTAN@epdiv1.env.gov.bc.ca
  1589.  
  1590. +++++++++++++++++++++++++++
  1591.  
  1592. >From kenlong@netcom.com (Ken Long)
  1593. Date: Fri, 18 Mar 1994 03:10:36 GMT
  1594. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1595.  
  1596. Carl:
  1597.  
  1598. There's some source for a program called "Words Alive" which has a 
  1599. "curtains" type thing in its about box.  It starts with a picture and 
  1600. then a pixel-at-a-time "curtain" raises (the picture goes up) revealing 
  1601. some more credits.
  1602.  
  1603. There are sideways auto-scrolling texts' which should not be hard to make 
  1604. vertical, like the "Marquee" stuff I recently posted (did I send you the 
  1605. file?).
  1606.  
  1607. I've got some source that scrolls up or down just by 
  1608. GetMouse-while-StillDown offset.  I was actually going to toss what I 
  1609. have on your server, but rework the project into a more diversified demo 
  1610. and then post it on a.s.m.
  1611.  
  1612. The basic trick is offsetting or scrolling (same difference) the rect. or 
  1613. rgn according to what you specify.  It can be via a key, the mouse or 
  1614. automatic.
  1615.  
  1616. I've got one Pascal project, where the about in a blank pDB, and a little 
  1617. line shows up, on center.  It gets bigger and you see that it's text.  It 
  1618. gets to 14pt and nicely fits into the box, hangs about 60, then keeps on 
  1619. zoomin' up closer ("").  Then the box closes.
  1620.  
  1621. That particular effect, in reverse, with a vertical (-) offset would be 
  1622. similar to the opening sequence in StarWars.
  1623.  
  1624. Also, the MSG demo, doing all it's wipes and other effects, may indicate 
  1625. an action to take.  But regarding text?  I don't know.
  1626.  
  1627. The one I have offsets text kinda like the "Grabber" tool.  Making it 
  1628. auto should be a snap.
  1629.  
  1630. -Ken-
  1631.  
  1632.  
  1633. +++++++++++++++++++++++++++
  1634.  
  1635. >From Kevin Marks <Kevin@pinner.demon.co.uk>
  1636. Date: Sat, 19 Mar 1994 17:46:06 GMT
  1637. Organization: Me
  1638.  
  1639. In article <cconstan-170394100443@eusacbc.env.gov.bc.ca> Carl B.
  1640. Constantine, cconstan@epdiv1.env.gov.bc.ca writes:
  1641. >I would like to know how to do movie credit style scrolling like I have
  1642. >seen in many people's about box's.  Can someone give me a code snippet or
  1643. >anything like that?
  1644.  
  1645. QuickTime's Text Tracks will do this automatically if you set a few
  1646. flags, but the docs are a bit flaky.
  1647. >From Carl.B..Constantine%f1.n3641.z1@psybbs.durham.nc.us (Carl B. Constantine)
  1648. Subject: Try 3: Movie Credit Scrolling - How?
  1649. Date: 17 Mar 94 23:04:43 GMT
  1650. Organization: (none)
  1651.  
  1652. Organization: Ministry of Environment, Lands & Parks
  1653.  
  1654. Sorry for the multiple posts (if your server recieved multiple posts) but
  1655. our NNTP server is having problems.
  1656.  
  1657. I would like to know how to do movie credit style scrolling like I have
  1658. seen in many people's about box's.  Can someone give me a code snippet or
  1659. anything like that?
  1660.  
  1661. Thanks in advance.
  1662.  
  1663.  
  1664. -- 
  1665. =========================================================================
  1666. Carl B. Constantine                      B.C. Environment, Lands & Parks
  1667. End-User Support Analyst                 CCONSTAN@epdiv1.env.gov.bc.ca
  1668.  
  1669. +++++++++++++++++++++++++++
  1670.  
  1671. >From paulcho@ionews.io.org (paulcho)
  1672. Date: 26 Mar 1994 11:28:54 -0500
  1673. Organization: Internex Online (io.org) Data: 416-363-4151  Voice: 416-363-8676
  1674.  
  1675.  
  1676.  
  1677. Kevin Marks <Kevin@pinner.demon.co.uk> wrote:
  1678. >QuickTime's Text Tracks will do this automatically if you set a few
  1679. >flags, but the docs are a bit flaky.
  1680.  
  1681. You can use my TextMovie program(part of MovieTrilogy availiable
  1682. on sumex) to create the QuickTime Text track movie. Then all you
  1683. have to do is load and play the movie.
  1684.  
  1685. ________________________________________________________________
  1686. Paul C.H. Ho   paulcho@io.org         Pink Elephant Technologies
  1687. Paul_C.H._Ho@magic-bbs.corp.apple.com   74020.772@compuserve.com
  1688.  
  1689.  
  1690. +++++++++++++++++++++++++++
  1691.  
  1692. >From zobkiw@datawatch.com (joe zobkiw)
  1693. Date: Mon, 28 Mar 1994 13:08:31 GMT
  1694. Organization: Datawatch Corporation
  1695.  
  1696. In article <2n1ns6$n0f@ionews.io.org>, paulcho@ionews.io.org (paulcho)
  1697. wrote:
  1698.  
  1699. > Kevin Marks <Kevin@pinner.demon.co.uk> wrote:
  1700. > >QuickTime's Text Tracks will do this automatically if you set a few
  1701. > >flags, but the docs are a bit flaky.
  1702. >  
  1703. > You can use my TextMovie program(part of MovieTrilogy availiable
  1704. > on sumex) to create the QuickTime Text track movie. Then all you
  1705. > have to do is load and play the movie.
  1706. >  
  1707.  
  1708. If al lyou want is scrolling credits just create a TEHandle in your window,
  1709. fill it with styled text from a resource, and TEScroll it...when it reaches
  1710. the end, reset your scroll position to the top. That's it! If you want
  1711. pictures, you can ScrollRect a PICT resource.
  1712.  
  1713. ___________________________________________________________
  1714. _/_/_/_/   Joe Zobkiw                                   ,,,
  1715.     _/     Senior Software Engineer                     - -
  1716.   _/       Datawatch Corporation                         L
  1717. _/_/_/_/   zobkiw@datawatch.com                          -
  1718.  
  1719. ---------------------------
  1720.  
  1721. >From rhn@netcom.com (Ron Nicholson)
  1722. Subject: making fat binaries question
  1723. Date: Wed, 23 Mar 1994 08:36:51 GMT
  1724. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1725.  
  1726. I'm using the Metrowerks Codewarrior Gold DR1 compilers.  I've got both
  1727. the 68k and PPC versions of my applications working.  How do I take the
  1728. 2 applications and make a fat binary?  Do I need any special resources
  1729. not found in either of the 2 processor specific apps?  Or do I just
  1730. paste all the resources and the data fork of the PPC app together into
  1731. one big glob?  Is there a utility to do this?
  1732.  
  1733. Thanks,
  1734.  
  1735. Ron Nicholson        rhn@netcom.com
  1736. #include <std.disclaimer>
  1737. (hey, I'm just a hardware guy, doing software for fun.)
  1738.  
  1739. +++++++++++++++++++++++++++
  1740.  
  1741. >From jwbaxter@olympus.net (John W. Baxter)
  1742. Date: Wed, 23 Mar 1994 10:46:21 -0800
  1743. Organization: Internet for the Olympic Peninsula
  1744.  
  1745. In article <rhnCn3zxF.LwA@netcom.com>, rhn@netcom.com (Ron Nicholson)
  1746. wrote:
  1747.  
  1748. > I'm using the Metrowerks Codewarrior Gold DR1 compilers.  I've got both
  1749. > the 68k and PPC versions of my applications working.  How do I take the
  1750. > 2 applications and make a fat binary?  Do I need any special resources
  1751. > not found in either of the 2 processor specific apps?  Or do I just
  1752. > paste all the resources and the data fork of the PPC app together into
  1753. > one big glob?  Is there a utility to do this?
  1754.  
  1755. One method:
  1756. Build the 68K version.  Use the result (or a suitably named copy) as the
  1757. resource file when you build the ppc version.  [Note that the presence of
  1758. the 'cfrg' resource in that 68K version is likely to annoy the system if
  1759. you run the 68K version on a Power Mac.]
  1760.  
  1761. -- 
  1762. John Baxter    Port Ludlow, WA, USA  [West shore, Puget Sound]
  1763.    jwbaxter@pt.olympus.net
  1764.  
  1765. +++++++++++++++++++++++++++
  1766.  
  1767. >From rhn@netcom.com (Ron Nicholson)
  1768. Date: Sun, 27 Mar 1994 19:45:40 GMT
  1769. Organization: NETCOM On-line Communication Services (408 241-9760 guest)
  1770.  
  1771. In article <jwbaxter-230394104621@ptpm009.olympus.net>,
  1772. John W. Baxter <jwbaxter@olympus.net> wrote:
  1773. >
  1774. >One method:
  1775. >Build the 68K version.  Use the result (or a suitably named copy) as the
  1776. >resource file when you build the ppc version.  [Note that the presence of
  1777. >the 'cfrg' resource in that 68K version is likely to annoy the system if
  1778. >you run the 68K version on a Power Mac.]
  1779. >
  1780.  
  1781. OK, I used this method to build a fat binary.  The resulting file seems
  1782. to run just fine on both an SE/30 and a Power Mac (except for the fact it
  1783. runs 29 times faster on the 7100!)  But doesn't the 'cfrg' resource need
  1784. to be modified to indicate that the app is a fat binary and not just
  1785. a pcc only app?
  1786.  
  1787. Is there a way for a fat application to toggle or have the user select
  1788. whether to run in native or emulated mode on a Power Mac?
  1789.  
  1790. I have Codewarrior Gold, Develop 17 and the newest Macsbug.  What other
  1791. critical items might I need off of the Mac on Risc SDK in order to
  1792. build Power Mac apps correctly?
  1793.  
  1794. Thanks,
  1795. Ron Nicholson        rhn@netcom.com
  1796. #include <std.disclaimer>
  1797.  
  1798.  
  1799. ---------------------------
  1800.  
  1801. End of C.S.M.P. Digest
  1802. **********************
  1803.  
  1804.  
  1805.  
  1806.